
      <div class="templatemo-content-wrapper">
        <div class="templatemo-content">
          <ol class="breadcrumb">
            <li><a href="<?=site_url()?>/admin/">Dashboard</a></li>
            <li><a href="#">统计查看</a></li>
            <li class="active">Tables</li>
          </ol>
          <h1>统计数据查看</h1>
          <p>statistics table.</p>

          <!--<div class="row margin-bottom-30">
            <div class="col-md-12">
              <ul class="nav nav-pills">
                <li class="active"><a href="#">New Users <span class="badge">42</span></a></li>
                <li><a href="#">Active Users <span class="badge">107</span></a></li>
                <li><a href="#">Expired Users <span class="badge">3</span></a></li>
              </ul>          
            </div>
          </div> -->
          <div class="row">
            <div class="col-md-12">
              <!--<div class="btn-group pull-right" id="templatemo_sort_btn">
                <button type="button" class="btn btn-default">Sort by</button>
                <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                  <span class="caret"></span>
                  <span class="sr-only">Toggle Dropdown</span>
                </button>
                <ul class="dropdown-menu" role="menu">
                  <li><a href="#">First Name</a></li>
                  <li><a href="#">Last Name</a></li>
                  <li><a href="#">Username</a></li>
                </ul>
              </div>-->
                日期查询:<input type="text" class="form_date" value="<?=$Ymd?:''?>" data-date-format="yyyymmdd"/>
              <div class="table-responsive">
                <h4 class="margin-bottom-15"></h4>
                <table class="table table-striped table-hover table-bordered">
                  <thead>
                    <tr>
                      <th>#</th>
                      <th>访问数</th>
                      <th>开户数</th>
                      <th>支付者数</th>
                      <th>总支付额</th>
                      <th>年月日时</th>
                    </tr>
                  </thead>
                  <tbody>
                  <?php foreach ($stattable as $i=>$row ):?>
                    <tr <?=$i%2==1?:'green'?>>
                      <td><?=$i+1?></td>
                      <td><?=$row['visitcnt']?:0?></td>
                      <td><?=$row['regcnt']?:0?></td>
                      <td><?=$row['payercnt']?:0?></td>
                      <td><?=$row['payamount']?:0?></td>
                      <td><?=$row['ctimehour']?></td>
                     <!-- <td>

                        <div class="btn-group">
                          <button type="button" class="btn btn-info">Action</button>
                          <button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown">
                            <span class="caret"></span>
                            <span class="sr-only">Toggle Dropdown</span>
                          </button>
                          <ul class="dropdown-menu" role="menu">
                            <li><a href="#">Bootstrap</a></li>
                            <li><a href="#">Font Awesome</a></li>
                            <li><a href="#">jQuery</a></li>
                          </ul>
                        </div>
                      </td>
                      <td><a href="#" class="btn btn-link">Delete</a></td>-->
                    </tr>

                    <?php endforeach;?>
                  </tbody>
                </table>
              </div>

              <ul class="pagination pull-right">

                  <?=$pagenation?>

                <!--<li><a href="#">5 <span class="sr-only">(current)</span></a></li>-->
                <!--<li><a href="#">&raquo;</a></li>-->
              </ul>

            </div>
          </div>
        </div>
      </div>

      <!-- Modal -->
      <div class="modal fade" id="confirmModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
          <div class="modal-content">
            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
              <h4 class="modal-title" id="myModalLabel">Are you sure you want to sign out?</h4>
            </div>
            <div class="modal-footer">
              <a href="sign-in.html" class="btn btn-primary">Yes</a>
              <button type="button" class="btn btn-default" data-dismiss="modal">No</button>
            </div>
          </div>
        </div>
      </div>

      <?php include 'admin_footer.php'?>
      <script>
          $(function() {
              $('.form_date').datetimepicker({
                  language:  'zh-CN',
                  format:'yyyy-mm-dd',
                  weekStart: 1,
                  todayBtn:  1,
                  autoclose: 1,
                  todayHighlight: 1,
                  startView: 2,
                  minView: 2,
                  forceParse: 0
              }).on('changeDate', function(ev){
                 location.href='admin/statusticsPage/0/'+$(this).val();
              });
          });
      </script>
  </body>
</html>